package com.easy.work.app;

import android.os.Environment;

import com.lidroid.xutils.LogUtil;
import com.tutor.syslib.BuildConfig;

/**
 * Created by zzgpc on 2017-9-6.
 */

public class CommonValue {
    //服务器地址
    public static String BASE_HOST_SERVERURL = "";


    static {
        BASE_HOST_SERVERURL = BuildConfig.ENVIRONMENT.getHostUrl();
        LogUtil.d("BASE_HOST_SERVERURL is " + BASE_HOST_SERVERURL + "BuildType is " + BuildConfig.ENVIRONMENT.toString());
    }

    //URL地址
    public static String HostServerUrl = BASE_HOST_SERVERURL + "*.jsonRequest";
    /**
     * 登录地址
     */
    public static String BASE_HOST_LOGIN = BASE_HOST_SERVERURL + "logon/login";

    public static String ADD = "add";
    public static String UPDATE = "update";



    /* request code */
    public static final int REQUEST_CODE_BASE = 100;
    public static final int REQUEST_PICTURE = REQUEST_CODE_BASE + 2;
    public static final int RESULT_REQUEST_CODE = 2;
    public static final String OSS_filename = Environment.getExternalStorageDirectory() + "/EasyWork/";
    public static final String headImage = "headImage/";
    public static final String contractImage = "contract/";

    /**
     * 断点续传
     */
    public static final int TASK_NONE = 1;
    public static final int TASK_PAUSE = 2;
    public static final int TASK_RUNNING = 3;

    public static String openCameraUri = "";

    /**
     * is debug for app
     */
    public static final boolean DEBUG = true;


    /**
     * 退出标志位
     */
    public static final String isExit = "isExit";


    public static final int MSG_LOAD_OVER = 1;
    public static final int MSG_LOAD_ERROR = 2;
    public static final int MSG_LOAD_EMPTY = 3;
    public static final int MSG_LOAD_INIT = 4;
    public static final int MSG_LOAD_SUCCES = 5;
    public static final int UPDATE_UI = 0;
    public static final int UPDATE_A = 0;
    public static final int UPDATE_B = 1;
    public static final int MSG_NO_DATA = 1001;

}
